package com.zsy.mapper;

import com.zsy.entity.TalentRecruitment;
import com.zsy.entity.UserResumeCenter;
import com.zsy.vo.NewJobVO;
import com.zsy.vo.business;
import com.zsy.vo.position;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IShareMapper {

    //分页渲染
    List<TalentRecruitment> getsomeInformation();


    //渲染缺少岗位的sql
    List<TalentRecruitment> getAllInformation();

    Integer AddInformation(TalentRecruitment t);
//<!--    修改简历-->
    Integer UpdataInfomation(TalentRecruitment t);
//删除简历
    Integer DeleteInfomation(@Param("talentId") Integer[] tarentId,@Param("deleterPeople")String deleterPeople);
//新增个人简历-->
    Integer AddResume (UserResumeCenter UR);
   // <!--    人事面试-->
    Integer Updatepersonnel(@Param("id") Integer id,@Param("personnelName") String personnelName);
    //技术面试
    Integer Updatetechnical(@Param("id") Integer id,@Param("technicalName") String technicalName);
//是否录取
    Integer interview(@Param("id") Integer id,@Param("admissionName") String admissionName,@Param("admission") Integer admission);
    //查看各个岗位有多少份
    List<NewJobVO> countResumesByPosition();
    //把查到的个数渲染到数据库
    int uprr(@Param("positionName") String positionName, @Param("resumeCount") int resumeCount);
    List<position> countPersonnelByPositionName();
    int upp(@Param("positionName") String positionName,@Param("personnelCount") int personnelCount);
    List<business> business();
    int upbus(@Param("positionName") String positionName,@Param("businessReviewCount") int businessReviewCount);
    //查看简历的sql
    List<UserResumeCenter> seleURC();
    //查看部分简历
    List<UserResumeCenter> selesomeURC();
}

